import request from "@/utils/request";

// 获取列表
export const filerMgrListService = (params) => {
  return request.get("/admin/filter/pages", { params });
};

// 删除
export const filerMgrDeleteService = (data) => {
  return request.delete("/admin/filter/batchRemove", { data });
};

// 详情
export const filerMgrDetailService = (id) => {
  return request.get(`/admin/filter/get/${id}`);
};

// 更新
export const filerMgrUpdateService = (data) => {
  return request.put("/admin/filter/update", data);
};

// 添加
export const filerMgrAddService = (data) => {
  return request.post("/admin/filter/save", data);
};

// 更新状态
export const filerMgrUpdateStatusService = (id, status) => {
  return request.put(`/admin/filter/updateStatus/${id}/${status}`);
};
